"use strict";
var _configCenter = _interopRequireDefault(require("../../config-center"));
var _validator = _interopRequireDefault(require("@pricking/core/dist/lib/validator"));
function _interopRequireDefault(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
let BaseValidator = class BaseValidator extends _validator.default {
    supportedUrl(url, msg = '暂不支持的网站') {
        if (!_configCenter.default.supportedSites.some((site)=>url.includes(site)
        )) {
            throw new Error(msg);
        }
        return this;
    }
};
module.exports = BaseValidator;
